<?php /*a:3:{s:67:"D:\phpstudy_pro\WWW\git\DSShop\app\admin\view\goodsalbum\index.html";i:1591758938;s:64:"D:\phpstudy_pro\WWW\git\DSShop\app\admin\view\public\header.html";i:1571626691;s:69:"D:\phpstudy_pro\WWW\git\DSShop\app\admin\view\public\admin_items.html";i:1566788179;}*/ ?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title>DSShop单店铺商城系统后台</title>
        <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
        <link rel="stylesheet" href="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/css/admin.css">
        <link rel="stylesheet" href="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.css">
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery-2.1.4.min.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.validate.min.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.cookie.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/common.js"></script>
        <script src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/js/admin.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery.ui.datepicker-zh-CN.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/perfect-scrollbar.min.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/layer/layer.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/dialog/dialog.js" id="dialog_js" charset="utf-8"></script>

        <script type="text/javascript">
            var BASESITEROOT = "<?php echo htmlentities(BASE_SITE_ROOT); ?>";
            var ADMINSITEROOT = "<?php echo htmlentities(ADMIN_SITE_ROOT); ?>";
            var BASESITEURL = "<?php echo htmlentities(BASE_SITE_URL); ?>";
            var HOMESITEURL = "<?php echo htmlentities(HOME_SITE_URL); ?>";
            var ADMINSITEURL = "<?php echo htmlentities(ADMIN_SITE_URL); ?>";
        </script>
    </head>
    <body>
        <div id="append_parent"></div>
        <div id="ajaxwaitid"></div>








<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>空间管理</h3>
                <h5></h5>
            </div>
            <?php if($admin_item): ?>
<ul class="tab-base ds-row">
    <?php if(is_array($admin_item) || $admin_item instanceof \think\Collection || $admin_item instanceof \think\Paginator): if( count($admin_item)==0 ) : echo "" ;else: foreach($admin_item as $key=>$item): ?>
    <li><a href="<?php echo htmlentities($item['url']); ?>" <?php if($item['name'] == $curitem): ?>class="current"<?php endif; ?>><span><?php echo htmlentities($item['text']); ?></span></a></li>
    <?php endforeach; endif; else: echo "" ;endif; ?>
</ul>
<?php endif; ?>
        </div>
    </div>

    <div class="upload-con" id="uploader" style="display: none;">
        <form method="post" action="" id="fileupload" enctype="multipart/form-data">
            <div class="upload-con-div"><?php echo htmlentities(lang('album_class_list_sel_img_class')); ?><?php echo htmlentities(lang('ds_colon')); ?>
                <select name="category_id" id="category_id" class="select w80">
                    <?php if(is_array($aclass_info) || $aclass_info instanceof \think\Collection || $aclass_info instanceof \think\Paginator): if( count($aclass_info)==0 ) : echo "" ;else: foreach($aclass_info as $key=>$v): ?>
                    <option value='<?php echo htmlentities($v['aclass_id']); ?>' class="w80"><?php echo htmlentities($v['aclass_name']); ?></option>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                </select>
            </div>
            <div class="upload-con-div"><?php echo htmlentities(lang('select_file')); ?>：
                <div class="dssc-upload-btn">
                    <a href="javascript:void(0);">
                        <span><input type="file" hidefocus="true" size="1" class="input-file" name="file" multiple="multiple"/></span>
                        <p><i class="iconfont">&#xe733;</i><?php echo htmlentities(lang('album_class_list_img_upload')); ?></p>
                    </a>
                </div>
            </div>
            <div dstype="file_msg"></div>
            <div class="upload-pmgressbar" dstype="file_loading"></div>
            <div class="upload-txt"><span><?php echo htmlentities(lang('album_batch_upload_description')); ?><?php echo htmlentities(config('ds_config.image_max_filesize')); ?>KB<?php echo htmlentities(lang('album_batch_upload_description_1')); ?></span> </div>
        </form>
    </div>
    <form method="get" name="formSearch">
        <div class="ds-search-form">
            <dl>
                <dt><?php echo htmlentities(lang('g_album_keyword')); ?></dt>
                <dd><input class="txt" name="keyword" id="keyword" value="<?php echo htmlentities(app('request')->get('keyword')); ?>" type="text"></dd>
            </dl>
            <div class="btn_group">
                <a href="javascript:document.formSearch.submit();" class="btn " title="<?php echo htmlentities(lang('ds_query')); ?>"><?php echo htmlentities(lang('ds_query')); ?></a>
                <?php if($filtered): ?>
                <a href="<?php echo url('Goodsalbum/index'); ?>" class="btn btn-default" title="<?php echo htmlentities(lang('ds_cancel')); ?>"><?php echo htmlentities(lang('ds_cancel')); ?></a>
                <?php endif; ?>
                <a id="open_uploader" href="JavaScript:void(0);" class="btn fr"><i class="iconfont">&#xe733;</i><?php echo htmlentities(lang('album_class_list_img_upload')); ?></a>

            </div>
        </div>
    </form>
    
  <div class="explanation" id="explanation">
      <div class="title" id="checkZoom">
          <h4 title="<?php echo htmlentities(lang('ds_explanation_tip')); ?>"><?php echo htmlentities(lang('ds_explanation')); ?></h4>
          <span id="explanationZoom" title="<?php echo htmlentities(lang('ds_explanation_close')); ?>" class="arrow"></span>
      </div>
      <ul>
          <li><?php echo htmlentities(lang('g_album_del_tips')); ?></li>
      </ul>
  </div>
    
    
    <form method='post' id="picForm" name="picForm">
        <table class="ds-default-table">
            <thead>
            <tr class="thead">
                <th class="w24"></th>
                <th class="w270"><?php echo htmlentities(lang('g_album_one')); ?></th>
                <th class="w270"><?php echo htmlentities(lang('g_album_pic_count')); ?></th>
                <th class="align-center"><?php echo htmlentities(lang('ds_handle')); ?></th>
            </tr>
            </thead>
            <tbody>
            <?php if(!(empty($albumclass_list) || (($albumclass_list instanceof \think\Collection || $albumclass_list instanceof \think\Paginator ) && $albumclass_list->isEmpty()))): if(is_array($albumclass_list) || $albumclass_list instanceof \think\Collection || $albumclass_list instanceof \think\Paginator): if( count($albumclass_list)==0 ) : echo "" ;else: foreach($albumclass_list as $key=>$v): ?>
            <tr class="hover edit">
                <td><input value="<?php echo htmlentities($v['aclass_id']); ?>" class="checkitem" type="checkbox" name="aclass_id[]"></td>
                <td class="name"><?php echo htmlentities($v['aclass_name']); ?></td>
                <td><?php echo !empty($pic_count[$v['aclass_id']]) ? htmlentities($pic_count[$v['aclass_id']]) :  0; ?></td>
                <td class="align-center">
                    <a href="<?php echo url('Goodsalbum/album_pic_list',['aclass_id'=>$v['aclass_id']]); ?>" class="dsui-btn-view"><i class="iconfont"></i><?php echo htmlentities(lang('g_album_pic_one')); ?></a>
                    <a href="javascript:dsLayerOpen('<?php echo url('Goodsalbum/album_edit',['aclass_id'=>$v['aclass_id']]); ?>','修改-<?php echo htmlentities($v['aclass_name']); ?>')" class="dsui-btn-edit"><i class="iconfont"></i>修改</a>
                    <a href="javascript:dsLayerConfirm('<?php echo url('Goodsalbum/aclass_del',['aclass_id'=>$v['aclass_id']]); ?>','<?php echo htmlentities(lang('ds_ensure_del')); ?>')" class="dsui-btn-del"><i class="iconfont"></i><?php echo htmlentities(lang('ds_del')); ?></a>
                    
                </td>
            </tr>
            <?php endforeach; endif; else: echo "" ;endif; else: ?>
            <tr class="no_data">
                <td colspan="10"><?php echo htmlentities(lang('ds_no_record')); ?></td>
            </tr>
            <?php endif; ?>
            </tbody>
            <tfoot>
            <?php if(!(empty($albumclass_list) || (($albumclass_list instanceof \think\Collection || $albumclass_list instanceof \think\Paginator ) && $albumclass_list->isEmpty()))): ?>
            <tr colspan="15" class="tfoot">
                <td><input type="checkbox" class="checkall" id="checkallBottom"></td>
                <td colspan="16"><label for="checkallBottom"><?php echo htmlentities(lang('ds_select_all')); ?></label>
                    &nbsp;&nbsp;<a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_delete_batch()"><span><?php echo htmlentities(lang('ds_del')); ?></span></a>
                </td>
            </tr>
            <?php endif; ?>
            </tfoot>
        </table>
        <?php echo $show_page; ?>
    </form>
</div>
    <script type="text/javascript" src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/fileupload/jquery.iframe-transport.js" charset="utf-8"></script>
    <script type="text/javascript" src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/fileupload/jquery.ui.widget.js" charset="utf-8"></script>
    <script type="text/javascript" src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/fileupload/jquery.fileupload.js" charset="utf-8"></script>
<script type="text/javascript">
    
    // ajax 上传图片
    var upload_num = 0; // 上传图片成功数量
    $('#fileupload').fileupload({
        dataType: 'json',
        url: "<?php echo url('Goodsalbum/image_upload'); ?>",
        add: function (e,data) {
        	$.each(data.files, function (index, file) {
                $('<div dstype=' + file.name.replace(/\./g, '_') + '><p>'+ file.name +'</p><p class="loading"></p></div>').appendTo('div[dstype="file_loading"]');
            });
            data.submit();
        },
        done: function (e,data) {
            var param = data.result;
            $this = $('div[dstype="' + param.origin_file_name.replace(/\./g, '_') + '"]');
            $this.fadeOut(3000, function(){
                $(this).remove();
                if ($('div[dstype="file_loading"]').html() == '') {
                    setTimeout("window.location.reload()", 1000);
                }
            });
            if(param.state == 'true'){
                upload_num++;
                $('div[dstype="file_msg"]').html('<i class="iconfont">&#xe64d;'+'</i>'+'<?php echo htmlentities(lang('album_upload_complete_one')); ?>'+upload_num+'<?php echo htmlentities(lang('album_upload_complete_two')); ?>');

            } else {
                $this.find('.loading').html(param.message).removeClass('loading');
            }
        }
    });
    function submit_delete(ids_str){
        _uri = ADMINSITEURL+"/Goodsalbum/aclass_del.html?aclass_id=" + ids_str;
        dsLayerConfirm(_uri,'<?php echo htmlentities(lang('ds_ensure_del')); ?>');
    }
</script>